#ifndef __DEVICE_H__
#define __DEVICE_H__

#define COLOR_BLUE   	0xff0000ff
#define COLOR_GREEN 	0xff00ff00
#define COLOR_RED		0xffff0000
#define COLOR_WHITE		0xffffffff
#define COLOR_TIME		0xff224508
#define COLOR_LGRAY		0xffcccccc
#define COLOR_GRAY		0xffaaaaaa
#define COLOR_DGRAY		0xff776655
#define COLOR_BLACK		0xff000000
#define COLOR_PURPLE	0xffcc20c0
#define COLOR_ORIG   	0xffff7020
#define COLOR_CYAN		0xff3680ff
#define COLOR_YELLOW	0xffc0c0f0
#define COLOR_DARK		0xff222222
#define VIDEO		    0x00000000

#define MAX_X           480
#define MAX_Y           272
#define PIX_CNT         MAX_X*MAX_Y

#define UI_BG           0xff200060
#define UI_FONT		    0xffffff00

#define SDLKxMANU       0xfffb  //SHIFT/MANUL
#define SDLKxESCAPE     0xfffe  //ESC
#define SDLKxFUSE       0xfffd  //FUSE
#define SDLKxDISCH      0xfff5  //DISCHARGE
#define SDLKxUP         0xffbf  //UP
#define SDLKxDOWN       0xfff7  //DOWN
#define SDLKxLEFT       0xffef  //LEFT
#define SDLKxRIGHT      0xffdf  //RIGHT
#define SDLKxRETURN     0xff7f  //OK
#define SDLKxHEAT       0xfeff  //HEAT

void disp_rectangle(int x, int y, int x1, int y1, int color);
void disp_common16(unsigned short startx, unsigned short starty, unsigned short hznumber, unsigned int bgColor);
void disp_common_big(unsigned short startx, unsigned short starty, unsigned short hznumber, unsigned int bgColor);
void disp_str16(int x, int y, int bgColor,int str[8]);
void disp_str32(int x, int y, int bgColor,int str[8]);

#endif
